//
//  ActivityModel.m
//  mendianjieke
//
//  Created by 响当当 on 8/7/19.
//  Copyright © 2019 dongzheng. All rights reserved.
//

#import "ActivityModel.h"

@implementation ActivityModel
- (id)initWithDic:(NSDictionary *)dic
{
    if (self = [super init])
    {
        self.totalAmount = IFNULL(dic[@"totalAmount"], [NSNumber new]);
        self.peopleCount = IFNULL(dic[@"peopleCount"],  [NSNumber new]);
        self.name = IFNULL(dic[@"name"], @"");
        self.startTime = IFNULL(dic[@"startTime"], [NSNumber new]);
        self.endTime = IFNULL(dic[@"endTime"], [NSNumber new]);
    }
    
    return self;

}
@end
